<tr>
<td>

<% 

e = user.email

if e != nil and  e != ''-%>
<a href="http://www.gravatar.com/avatar.php?gravatar_id=<%=Digest::MD5.hexdigest(e)%>"><img src="http://www.gravatar.com/avatar.php?gravatar_id=<%=Digest::MD5.hexdigest(e)%>&size=40"></a>
<% end -%>
</td>

<td><%=user.name%> (<%=user.login%>, <%=e%>)</td>

<td>
<% if user.last_login %>
<%=user.last_login.strftime('%Y-%m-%d %H:%M')%>
<% end %>
</td>

<td><%=user.projects.size%></td>

<td><%=user.tasks.size%></td>

</tr>

